<%-- 
    Document   : stock-update
    Created on : Mar 25, 2011, 8:19:11 AM
    Author     : submonkey
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <jsp:include page="includes/script.html"/>

        <title>Stock Edit Form</title>
    </head>

    <body>
        <center><h2>Edit Data Stock</h2>
            <br>
        <form method="post">

            <c:forEach var="data" items="${data}">
                <input type="hidden" name="id" value="${data.id}">
                <table>
                    <tr>
                        <td>Date</td>
                        <td><input type="text" name="tanggal" readonly value="${data.tanggal}">
                        <img src="images/calendar.gif" onclick="displayDatePicker('tanggal', false, 'ymd', '-');" />
                        </td>
                    </tr>
                    <tr>
                        <td>Plan Incoming</td>
                        <td><input type="text" name="planIncoming" value="${data.planIncoming}"></td>

                    </tr>
                    <tr>
                        <td>Incoming</td>
                        <td><input type="text" name="incoming" value="${data.incoming}"></td>
                    </tr>
                    <tr>
                        <td>Plan Usage</td>
                        <td><input type="text" name="planUsage" value="${data.planUsage}"></td>

                    </tr>
                    <tr>
                        <td>Usage</td>
                        <td><input type="text" name="usageData" value="${data.usageData}"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right"><input  type="submit" name="submit" value="Save" ></td>
                    </tr>
                </table>
            </c:forEach>

        </form>

</center>

    </body>
</html>
